﻿using Entity;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace API.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class studyController : ControllerBase
    {
        private readonly ApiDbContext db;
        public studyController(ApiDbContext context)
        {
            db = context;
        }
        public List<Study> GetAllUser()
        {
            return db.stu.ToList();
        }
    }
}
